package com.mall.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mall.uitl.JsonDateSerializer;

import java.util.Date;

public class Collection {
    private String collection_id;

    private Integer member_id;

    private Integer goods_id;

    private Date collection_time;

    private Integer flag;

    private ItemGoods itemGoods;

    public ItemGoods getItemGoods() {
        return itemGoods;
    }

    public void setItemGoods(ItemGoods itemGoods) {
        this.itemGoods = itemGoods;
    }

    public String getCollection_id() {
        return collection_id;
    }

    public void setCollection_id(String collection_id) {
        this.collection_id = collection_id == null ? null : collection_id.trim();
    }

    public Integer getMember_id() {
        return member_id;
    }

    public void setMember_id(Integer member_id) {
        this.member_id = member_id;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    @JsonSerialize(using= JsonDateSerializer.class)
    public Date getCollection_time() {
        return collection_time;
    }

    public void setCollection_time(Date collection_time) {
        this.collection_time = collection_time;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
}